package com.example.controller;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping(value = "user", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class UserController {
    @RequestMapping(value = "info", method = RequestMethod.GET)
    public Map info() {
        Map<String,Object> map=new HashMap<>();
        map .put("page", "user");
        return map ;
    }
}
